/**
* 调起支付面板发起支付
*/
export const requestPayment = (obj = {}) => {
  console.log('订单号:', obj.prepayNo)
  uni.requestPayment({
    package: 'prepay_id=' + obj.prepayNo,
    success: function (res) {
      console.log('success:' + JSON.stringify(res));
	  typeof obj.success == 'function' && obj.success(res)
    },
    fail: function (err) {
      console.log('fail:' + JSON.stringify(err));
	  typeof obj.fail == 'function' && obj.fail(err)
    }
  })
}
